{% extends "base.html" %}
{# Page de confirmation de suppression de compte #}

{% block title %}{{ pageTitle}}{% endblock %}

{% block content %}

{#%include 'displayErrors.html' %#}

{% if errors.csrf %}
	<div class="error">
		{{errors.csrf}}
	</div>
{%endif%}

Owner: {{username}}

<form class="formulaire" action="" method="post">
	{{crsfToken|raw}}
	
	<p>So bad! Do you really want to remove your account?<br />
	You will disappear of all rankings!<br />
	If it is really what you want, confirm it by typing your password.
	</p>
	
	<div class="absoluteLabel">
		<label for="id_password">Your password (security)</label> 
		<input id="id_password" type="password" name="{{passwordInputName}}" value="" />
		{% if errors.password %}<div class="fieldError">
			{{errors.password}}
		</div>{%endif%}
	</div> 
	
	<input type="submit" name="submit" value="Desactivate my account ({{username}})" />  
	<a href="profile.php" >Cancel</a>
</form> 
	
<p><small><i>This action is not irreversible. Write to the administrator if you want to reopen your account.</i></small></p>
	
 
{% endblock content %}